package com.one.square.user.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.one.square.core.entity.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author cwm
 * @Description
 * @date 2021/10/21 下午12:35
 * @Version 1.0
 */
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {
    /***
     * 根据用户id查询角色集合
     * @param userId
     * @return
     */
    List<SysRole> findByUserId(@Param("userId") Long userId);
}
